package com.api.shopapi.service.impl;

import com.api.shopapi.entity.ElderlyDisableLevelRel;
import com.api.shopapi.mapper.ElderlyDisableLevelRelMapper;
import com.api.shopapi.service.ElderlyDisableLevelRelService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service("ElderlyDisableLevelRelServiceImplOne")
public class ElderlyDisableLevelRelServiceImplOne implements ElderlyDisableLevelRelService {


    @Autowired
    private ElderlyDisableLevelRelMapper elderlyDisableLevelRelMapper;

    @Override
    public
    int insert(ElderlyDisableLevelRel elderlyDisableLevelRel){
        return elderlyDisableLevelRelMapper.insert(elderlyDisableLevelRel);
    }

    @Override
    public
    int delete(String elderlyDiseaseTypeRelCode){
        return elderlyDisableLevelRelMapper.delete(elderlyDiseaseTypeRelCode);
    }

    @Override
    public
    List<ElderlyDisableLevelRel> ListByElderlyCode(String elderlyCode){
        return elderlyDisableLevelRelMapper.ListByElderlyCode(elderlyCode);
    }


}
